package com.gitee.ricesugar.mall.model.POJO.DO;

public class ProductDO {
    private int id;
    private int product_id;
    private String name;
    private double price;
    private int stock;
    private int sales;
    private String img;

    public ProductDO(int id, int product_id, String name, double price, int stock, int sales, String img) {
        this.id = id;
        this.product_id = product_id;
        this.name = name;
        this.price = price;
        this.stock = stock;
        this.sales = sales;
        this.img = img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    public String getImg() {
        return img;
    }

    @Override
    public String toString() {
        return "ProductDO{" +
                "id=" + id +
                ", product_id=" + product_id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", sales=" + sales +
                ", img='" + img + '\'' +
                '}';
    }
}
